#include <iostream>
using namespace std;
int main()
{
  string numeral = "";
  cout << "Enter the word, meaning the numeral, from 1..4" << '\n';
  cin >> numeral;
  if ((numeral=="One") || (numeral=="one"))
    cout << "1";
  else
    if ((numeral=="Two") || (numeral=="two"))
      cout << "2";
    else
      if ((numeral=="Three") || (numeral=="three"))
	cout << "3";
      else
	if ((numeral=="Four") || (numeral=="four"))
          cout << "4";
	else cout << "Unknown numeral";
  cin >> ws;
  return 0;
}
